#![warn(clippy::all, clippy::pedantic, clippy::nursery)]

mod couplet;
//mod test;

// 导入 eframe 预定义的内容
//use eframe::{App, Frame, NativeOptions};
fn main() {
    // 初始化Tokio运行时
    let rt = tokio::runtime::Runtime::new().unwrap();
    let _enter = rt.enter();

    let my_list = ["One", "Two", "Three"];
    for item in &my_list {
        println!("{}", item);
    }

    couplet::main_demo();

    let options = eframe::NativeOptions::default();
    let _ = eframe::run_native(
        "对联生成器",
        options,
        Box::new(|_cc| Ok(Box::new(crate::couplet::CoupletApp::default()))),
    );
}
